package com.manner.groupon.service.store;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manner.groupon.common.BaseResponse;
import com.manner.groupon.common.PageResult;
import com.manner.groupon.model.dto.order.AdminWithDTO;
import com.manner.groupon.model.dto.store.WithDrawDTO;
import com.manner.groupon.model.entity.WithDrawRecord;
import com.manner.groupon.model.vo.AdminWithVO;

import java.util.List;

public interface WithDrawRecordService extends IService<WithDrawRecord> {


    /**
     * 添加提现信息
     * @param withDrawDTO
     * @return
     */
    BaseResponse<String> insert(WithDrawDTO withDrawDTO);

    /**
     * 根据手机号查询
     * @param phone 手机号
     * @return
     */
    BaseResponse<List<WithDrawRecord>> list_search(String phone);

    /**
     * 查询提现记录
     * @param adminWithDTO  搜索条件
     * @return
     */
    BaseResponse<PageResult<AdminWithVO>> query_search(AdminWithDTO adminWithDTO);

    /**
     * 通过提现
     * @param id   提现通过
     * @return
     */
    BaseResponse<String> updateWith(Long id);
}
